package config

import (
	"github.com/zeromicro/go-zero/core/stores/redis"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	MysqlConfig MysqlConfig `json:"mysqlConfig"`
	Auth        Auth        `json:"auth"`
	RedisConfig redis.RedisConf
}

// MysqlConfig
// @Description: 数据库连接信息
type MysqlConfig struct {
	DataSource     string `json:"datasource"`
	ConnectTimeout int    `json:"connectTimeout"`
}

// Auth
// @Description: jwt 配置
type Auth struct {
	AccessSecret string `json:"accessSecret"`
	Expire       int64  `json:"expire"`
}
